<?php
function myTest(){
	return "函数测试";
}

class MainController {
	public function setupAction() {
		$log = new UE_Log_File();
		$log->write('log', 'xxx');

		$var = array('x'=>array('y'=>array('z'=>'ss')));
		$v = new UE_Template();
		$v->assign('a', "变量测试");
		$v->assign('c', "变量测试");
		$v->assign('b', $var);
		$cache = UE_Cache::createCache();
		$cache->set('v', $var);
		if (IS_POST) {
			file_put_contents(SITE_DIR.'/x.txt', serialize($_POST));
		}
		$v->apply('test/tpl');
	}

}